import Request from '@/api/request'
var request = new Request().http

//获取文章分类
export function getCategory() {
	return request({
		url: "/applet/article-category/getNameAndId",
		method: "Get"
	})
}

// 分类获取文章
export function getArticle(data : { categoryId : string; current : number; size : number }) {
	return request({
		url: "/applet/article/getArticle",
		method: "Get",
		data
	})
}

//获取文章内容
export function getArticleInfo(articleId) {
	return request({
		url: "/applet/article/getArticleInfo",
		method: "Get",
		data: {
			articleId:articleId
		}
	})
}